using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using FutureOpen.Core.func.sql;
using FutureOpen.Web.Pages;

public partial class controls_GroupHotTopic : System.Web.UI.UserControl
{
    private PageBase pbase;
    private int group_id;
    protected void Page_Load(object sender, EventArgs e)
    {
        pbase = (PageBase)this.Page;
        pbase.PageInit();
        group_id = pbase.orgid;

        if (!Page.IsPostBack)
        {
            LoadTopics();
        }
    }
    public void LoadTopics()
    {
        if (this.group_id >= 0)
        {
            DataSet ds = TopicProvider.GetTopicByGroup(group_id, 0, 10);
            this.GridView1.DataSource = ds.Tables[0];
            this.GridView1.DataBind();
        }

    }

}
